Linux Networking Internals 4 - Network Device Statistics

Network Device Statistics

netdev_rx_stat, its elements are of type netif_rx_stats

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct netif_rx_stats netdev_rx_stat[NR_CPUS];
struct netif_rx_stats
{
unsigned total;
unsigned dropped;
unsigned time_squeeze;
unsigned throttled;
unsigned fastroute_hit;
unsigned fastroute_success;
unsigned fastroute_defer;
unsigned fastroute_deferred_out;
unsigned fastroute_latency_reduction;
unsigned cpu_collision;
} __ _ _cacheline_aligned;